package com.umeng.soexample.mvp.contract;

import com.umeng.lib_core.mvp.model.IModel;
import com.umeng.lib_core.mvp.view.IView;
import com.umeng.soexample.bean.AddCarEntity;
import com.umeng.soexample.bean.BaseEntity;
import com.umeng.soexample.bean.CollectionEntity;
import com.umeng.soexample.bean.GoodsValuesEntity;
import com.umeng.soexample.bean.SelGoodsValuesEntity;
import com.umeng.soexample.bean.UncollectionEntity;

import io.reactivex.Observable;

public interface GoodsValuesFragmentContract {

    interface GoodsValuesFragmentIView extends IView {
        void GoodsValuesSuccess(GoodsValuesEntity entity);
        void SelGoodsValuesSuccess(SelGoodsValuesEntity entity);
        void AddCarSuccess(AddCarEntity entity);
        void CollectionSuccess(CollectionEntity entity);
        void UncollectionSuccess(UncollectionEntity entity);

    }

    interface GoodsValuesFragmentIModel extends IModel {
        Observable<BaseEntity> values(String request);
        Observable<AddCarEntity> AddCarValues(String request);
        Observable<CollectionEntity> CollectionValues(String request);
        Observable<UncollectionEntity> UncollectionValues(String request);
    }

}
